(function() {
  document.getElementById("search").addEventListener("click", function() {
    const query = document.getElementById("searchInput").value;
    console.log(query);
    window.location.href = "assets/search/index.html?q=" + query;
  });
})();